import request from '@/utils/request'


//添加巡查记录
export function getlistLog(data) {
  return request({
    url: '/security/log/unRecordList',
    method: 'get',
    params:data
  })
}

//添加巡查记录表格
export function getlistLogData(data) {
  return request({
    url: '/security/log/insertRecords',
    method: 'put',
    data: data
  })
}

//获取安全巡查记录
export function getlistData(data) {
  return request({
    url: '/security/log/allRecordList',
    method: 'get',
    params: data
  })
}
//点击隐患详情
export function listDataLook(id) {
  return request({
    url: '/record/record/' + id,
    method: 'get',
  })
}

// 提交安全日志
export function upData(data) {
  return request({
    url: '/security/log',
    method: 'post',
    data: data
  })
}
// 查询安全日志详细
export function getLog(id) {
  return request({
    url: '/security/log/' + id,
    method: 'get'
  })
}

// 修改安全日志
export function updateLog(data) {
  return request({
    url: '/security/log',
    method: 'put',
    data: data
  })
}